﻿using RRD.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;

namespace RRD.Controller
{
    public class Visualiser
    {
        public static Brush GetColorStatus(StateEnum stateEnumValue)
        {
            Brush value = Brushes.White;

            switch(stateEnumValue)
            {
                case StateEnum.Open:
                    value = Brushes.LightGreen;
                break;
                case StateEnum.ReadyToOpen:
                    value = Brushes.Orange;
                break;
                case StateEnum.Close:
                    value = Brushes.Red;
                break;
            }
            return value;
        }

        public static Brush GetColorScan(MessageType messageType)
        {
            Brush value = Brushes.White;
            
            switch (messageType)
            {
                case MessageType.Message:
                    value = Brushes.LightGreen;
                    break;
                case MessageType.Warning:
                    value = Brushes.Orange;
                    break;
                case MessageType.Error:
                    value = Brushes.Red;
                    break;
            }
            return value;
        }
    }
}
